package club.zhcs.capture.bean.dept;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import com.dgj.utils.db.data.Entity;

/**
 * 分之机构
 * 
 * @author wkipy
 *
 */
@Table("gj_subsidiary")
@Comment("分支机构表")
public class Subsidiary extends Entity {

	@Name
	@Column("sub_name")
	@Comment("分支机构名称")
	@ColDefine(width = 200)
	private String name;

	@Column("sub_code")
	@Comment("分支机构编码")
	private String code;

	@Column("sub_des")
	@Comment("分支机构描述")
	@ColDefine(width = 500)
	private String description;

	@Column("sub_address")
	@Comment("分支机构地址")
	@ColDefine(width = 500)
	private String address;

	@Column("sub_phone")
	@Comment("分支机构电话")
	@ColDefine(width = 500)
	private String phone;

	@Column("sub_principal_id")
	@Comment("分支机构负责人id")
	private int principalId;

	@Column("sub_area_id")
	@Comment("分支机构所在地区id")
	private int areaId;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getPrincipalId() {
		return principalId;
	}

	public void setPrincipalId(int principalId) {
		this.principalId = principalId;
	}

	public int getAreaId() {
		return areaId;
	}

	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}

}
